-
Notifications
You must be signed in to change notification settings - Fork 77
ESP32 examples: adaptation to post-1.0.0-rc0 API changes #469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
examples/esp32/Cargo.toml
Outdated
esp-radio = { version = "0.15.0", features = [ "unstable", "ble" ] } | ||
esp-preempt = { version = "0.0.1", features = ["log-04"] } | ||
esp-radio = { version = "0.15.0", features = ["ble", "log-04", "unstable"] } | ||
esp-rtos = { version = "0.0.1", features = ["embassy", "log-04"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Background: esp-hal-embassy
will be gone; esp-preempt
was the interim name for the replacement, which eventually will be esp-rtos
. The purpose (of esp-hal
) is to consolidate async under one module. .
#[cfg(feature = "esp32")] | ||
{ | ||
esp_hal_embassy::init(timg0.timer1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those blocks are no longer needed, due to the API change (esp_rtos
).
use esp_radio::Controller; | ||
use static_cell::StaticCell; | ||
//use esp_radio::Controller; | ||
//use static_cell::StaticCell; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From here on, it's the same story for each of the samples.
thanks for doing this! |
1.0.0-rc1 was released yesterday |
736d8bd
to
9b171b4
Compare
esp-alloc = { version = "0.9.0" } | ||
esp-println = { version = "0.16.0", features = ["log-04"] } | ||
esp-radio = { version = "0.16.0", features = ["ble", "log-04", "unstable"] } | ||
esp-rtos = { version = "0.1.1", features = ["embassy", "esp-alloc", "esp-radio", "log-04"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the esp-alloc
feature is needed. Likely works both with or without.
9b171b4
to
c62be86
Compare
/test |
…_bas_peripheral_bonding conversions
c62be86
to
cff9dc5
Compare
The upcoming embassy changes in
esp-hal
are already documented, and can be prepared for.This PR updates the
examples/esp32
to be prepared for the next 1.0.0-rc version. I advocate that this wouldn't be merged, until rc1 or similar, is released. But we can already fine tune the examples.